var http = require('http');
http.createServer(function(req, res){
    var buf = '';
    req.setEncoding('utf8');
    req.on('data', function(chunk){
        buf += chunk;
    });
    req.on('end', function(){
        res.writeHead(200, {'Content-Type': 'application/json'});
        res.end('ok world ~');

    });
}).listen('8765', '127.0.0.1');